package org.example.studentmanager.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Clazz {

    private Integer id;
    private String classname;
    private Integer classcode;
    private String major;
    private String grade;
    private Integer teacherId;

    // 这个grade字段好像不是很对劲的样子
    public Clazz(String classname, Integer classcode, String major, String grade, Integer teacherId) {
        this.classname = classname;
        this.classcode = classcode;
        this.major = major;
        this.grade = grade;
        this.teacherId = teacherId;
    }
}
